package com.lxs.mall.service;

import com.lxs.mall.exception.LxsMallException;
import com.lxs.mall.model.pojo.User;

/**
 * UserService
 * @author 小松
 */
public interface UserService {
    /**
     * @return
     */
    User getUser();

    /**
     * @param username
     * @param password
     * @param emailAddress
     * @throws LxsMallException
     */
    void register(String username,String password,String emailAddress) throws LxsMallException;

    /**
     * @param username
     * @param password
     * @return
     * @throws LxsMallException
     */
    User login(String username, String password) throws LxsMallException;

    /**
     * @param user
     * @throws LxsMallException
     */
    void updateInformation(User user) throws LxsMallException;

    /**
     * @param user
     * @return
     */
    boolean checkAdmin(User user);

    /**
     * @param emailAddress
     * @return
     */
    boolean checkEmailAddress(String emailAddress);
}
